
const bus = require('@/utils/bus')
// console.log(bus);
Page({
  onLoad() {

  },
  backTap() {
    this.$back({
      path: '/pages/index/index'
    }).then(backPage => {
      // console.log(backPage)
      backPage.setData({
        inputVal: '789'
      })
    })
  },
  onEmit() {
    bus.emit('customEvent', { name: 'user' })
  }
})
